package org.example.mapper;


import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.example.pojo.User;
import org.example.pojo.Variable;

import java.util.List;
import java.util.Map;


public interface VarMapper {

    @Delete("delete from variable where v_id = #{param1}")
    int deleteVar(int vId);


    @Select("select * from variable")
    List<Variable> selectVariables();



    @Insert("INSERT INTO variable VALUES(#{vId},#{vName},#{vInfo},#{vValue})")
    int insertVar(Variable variable);




    List<Variable> selectVariablesByAll(String var);
}
